/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package irsystem.scenario;

import irsystem.collection.CISI;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.List;

/**
 *
 * @author User
 */
public class Main {

    public static void main(String[] args) throws FileNotFoundException, IOException
    {
        CISI cisi=CISI.readFromFiles("cisi.all", "qrels.text", "query.text", "stopword.txt");
        ScenarioOption option=new ScenarioOption(true, true, ScenarioOption.TF_AUGMENTED, true, true);
        Experiment experiment=new Experiment(option, cisi,null);
        experiment.startScenario();
        ExperimentResult result=experiment.getResult();
        List<ExperimentResult.ExperimentResultEntry> entry=result.getResults();
        double average=0.0;
        for(int i=0;i<entry.size();i++)
        {
            average+=entry.get(i).getNIAP();
        }
        System.out.println(average/entry.size());
    }
}
